const a = async function (
  _,
  _01,
  { params = {} },
  { dc: { open, close }, xe: { get } }
) {
  const transfer = params;
  const layout = { id: "1795985244162146306" };
  const modal = {
    title: "添加标签",
    width: "55vw",
    height: document.body.clientHeight * 0.35,
    defaultFullscreen: false,
    destroyOnClose: false,
    maskClosable: false,
    open: true,
    centered: true,
    showCancelBtn: true,
  };
  const inner = {
    onOk: async function (_, { origin, validate }, { dc: { http, message } }) {
      const validateRes = await validate();
      if (validateRes["1795985531509719041"] !== true) return;
      const params = get(origin, "1795985531509719041", {});
      const { code, msg } = await http.post(
        { url: "/nyk/tag/modifyTag", data: { ...params } },
        { isTransformResponse: false }
      );
      if (code !== 200) {
        message.error(msg);
      } else {
        close(true);
      }
    },
  };
  open({ inner, layout, modal, transfer });
};
